(function (mui, window) {
    var v3AceRestDevVersion = window.v3AceRestDevVersion = {};
    var baseRequest = window.baseRequest;
    var appConfig = window.appConfig;
    var commonTool = window.commonTool;
    var dataManager = window.dataManager;
    var locale = dataManager.getLocale();
	var baseUrl = appConfig.v3ServiceUrl + '/ace/oasis/oasis-rest-dev-version/restdev/o2oportal';
    //add by dongyi
	var getDevVersionUrl = baseUrl + '/version?';
	//获取认证模板列表接口
	v3AceRestDevVersion.getDevVersion = function (devSN,callback) {
        baseRequest.commonGet(getDevVersionUrl + mui.param({dev_sn:devSN}), 10000, function (code, data) {
            if (code === 2 || code === 1) {
                return callback(2);
            }
            if (code === 0) {
                if (data.code === 0) {
                	callback(0,data.data);
                } else {
                    callback(1,data.message);
                }
            }
        });
    }
	
    //  end
    //add by ding
    //end
    //add by zhangfuqiang
    // end
    
    // by wangyu
    //end
}(mui, window));